package com.demo.service.vo;

import com.demo.pojo.DbLock;
import com.demo.pojo.Order;
import com.demo.pojo.Product;
import com.demo.pojo.User;
import com.demo.service.dto.DbLockDto;
import com.demo.service.dto.OrderDto;
import com.demo.service.dto.ProductDto;
import com.demo.service.dto.UserDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface MyConverterUtils {

    MyConverterUtils INSTANCE = Mappers.getMapper(MyConverterUtils.class);

    UserDto toUserDto(User user);

    UserVo toUserVo(User user);

    OrderDto toOrderDto(Order order);

    OrderVo toOrderVo(Order order);

    DbLockDto toDbLockDto(DbLock dbLock);

    ProductDto toProductDto(Product record);


}
